Python_select version 0.1 - How to Download and Install on Mac OS X
Saturday the 4th of July, 2009

    python_select  most recent diff


    version 0.1

      View the most recent changes for the python_select port at: python_select.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for python_select.
      The raw portfile for python_select 0.1 is located here:
      http://python_select.darwinports.com/dports/sysutils/python_select/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/python_select


      The python_select Portfile 38929 2008-08-02 23:56:08Z raimue macports.org $

      PortSystem 1.0

      Name: python_select
      Version: 0.1
      Revision: 4
      Category: sysutils
      Platform: darwin
      Maintainers: raimue
      Description: Switch the default python interpreter
      Long Description: python_select lets you switch the default python interpreter. python_select symlinks the standard python executables in the MacPorts prefix to the selected version.

      Homepage: http://svn.macports.org/repository/macports/contrib/select/
      Master Sites: ${homepage}
      distname select-${version}
      Checksums: sha1 18e1f95c2ddd88210aa52eb696261859af2dc3a4

      configure.args --mandir=${prefix}/share/man --name=python

      # install all files
      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
      xinstall -m 644 -W ${filespath} base none ${destroot}${prefix}/etc/select/python
      }

      platform darwin 7 {
      post-destroot {
      xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python
      system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple"
      }
      }

      platform darwin 8 {
      post-destroot {
      xinstall -m 644 -W ${filespath} python23-apple ${destroot}${prefix}/etc/select/python
      system "${destroot}${prefix}/bin/${name} -i ${destroot} python23-apple"
      }
      }

      platform darwin 9 {
      post-destroot {
      xinstall -m 644 -W ${filespath} python25-apple ${destroot}${prefix}/etc/select/python
      system "${destroot}${prefix}/bin/${name} -i ${destroot} python25-apple"
      }
      }

      livecheck.check none

      # Documentation for python ports:
      # Modify these two lines and add them into your destroot phase
      # xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
      # xinstall -m 644 ${filespath}/python2x ${destroot}${prefix}/etc/select/python/


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/python_select
      % sudo port install python_select
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching python_select
      ---> Verifying checksum for python_select
      ---> Extracting python_select
      ---> Configuring python_select
      ---> Building python_select with target all
      ---> Staging python_select into destroot
      ---> Installing python_select
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using python_select with these commands:
      %  man python_select
      % apropos python_select
      % which python_select
      % locate python_select

     Where to find more information:

    Darwin Ports



    Lightbox this page.